<template>
  <view class="container">
    <!-- <z-paging-swiper>
			<view slot="top">
				<u-navbar height="50" title="评论管理" title-size="36" title-color="#333"></u-navbar>
				<view class="tabsView">
					<u-tabs-swiper ref="uTabs" :list="tabsList" :current="current" @change="tabsChange"
						:is-scroll="false" :show-bar="false" active-color="#0F76BC" swiper-width="750">
					</u-tabs-swiper>
				</view>
				<u-gap height="20" bg-color="#F0F1F2"></u-gap>
			</view>

			<swiper class="swiperView" :current="scurrent" @transition="transition" @animationfinish="animationfinish">
				<swiper-item class="swiperItem">
					<z-paging ref="paging" v-model="dataList" @query="queryList">
						<view class="comment-area">
							<view class="comment-box" v-for="(item,index1) in dataList" :key="index1">
							<view class="comment-info">
								<view class="user-info">
									<u-avatar src="" size="70"></u-avatar>
									<view class="user">
										用户2
										<p>2023-02-15</p>
									</view>
									<view class="user-rate">
										<p>非常满意</p>
										<u-rate ></u-rate>
									</view>

								</view>
								</view>
								<view class="comment-content">
									<view class="">
										产品非常好，非常喜欢。产品非常好，非常喜欢。产品非常好，非常喜欢。产品非常好，非常喜欢。产品非常好，非常喜欢。
									</view>
									<view class="comment-img">
								<image src="../.." mode=""></image>

									</view>
								</view>
								<view class="reply" >
									点击回复>
								</view>
							</view>
						</view>
					</z-paging>
				</swiper-item>
				<swiper-item class="swiperItem">
					<z-paging ref="paging2" v-model="dataList2" @query="queryList2">
						<view class="comment-area">
							<view class="comment-box" v-for="item in dataList2">
							<view class="comment-info">
								<view class="user-info">
									<u-avatar src="" size="70"></u-avatar>
									<view class="user">
										用户2
										<p>2023-02-15</p>
									</view>
									<view class="user-rate">
										<p>非常满意</p>
										<u-rate ></u-rate>
									</view>

								</view>
								</view>
								<view class="comment-content">
									<view class="">
										产品非常好，非常喜欢。产品非常好，非常喜欢。产品非常好，非常喜欢。产品非常好，非常喜欢。产品非常好，非常喜欢。
									</view>
									<view class="comment-img">
										<image src="../.." mode=""></image>

									</view>
								</view>
								<view class="reply" >
									点击回复>
								</view>
							</view>
						</view>
					</z-paging>
				</swiper-item>
				<swiper-item class="swiperItem">
					<z-paging ref="paging3" v-model="dataList3" @query="queryList3">
						<view class="comment-area">
							<view class="comment-box" v-for="item in dataList3">
							<view class="comment-info">
								<view class="user-info">
									 <u-avatar src="" size="70"></u-avatar>
									<view class="user">
										用户2
										<p>2023-02-15</p>
									</view>
									<view class="user-rate">
										<p>非常满意</p>
										<u-rate ></u-rate>
									</view>

								</view>
								</view>
								<view class="comment-content">
									<view class="">
										产品非常好，非常喜欢。产品非常好，非常喜欢。产品非常好，非常喜欢。产品非常好，非常喜欢。产品非常好，非常喜欢。
									</view>
									<view class="comment-img">
										 <image src="../.." mode=""></image>

									</view>
								</view>
								<view class="reply" >
									点击回复>
								</view>
							</view>
						</view>
					</z-paging>
				</swiper-item>
				<swiper-item class="swiperItem">
					<z-paging ref="paging4" v-model="dataList4" @query="queryList4">
						<view class="comment-area">
							<view class="comment-box" v-for="item in dataList4">
							<view class="comment-info">
								<view class="user-info">
									<u-avatar src="" size="70"></u-avatar>
									<view class="user">
										用户2
										<p>2023-02-15</p>
									</view>
									<view class="user-rate">
										<p>非常满意</p>
										<u-rate ></u-rate>
									</view>

								</view>
								</view>
								<view class="comment-content">
									<view class="">
										产品非常好，非常喜欢。产品非常好，非常喜欢。产品非常好，非常喜欢。产品非常好，非常喜欢。产品非常好，非常喜欢。
									</view>
									<view class="comment-img">
										<image src="../.." mode=""></image>

									</view>
								</view>
								<view class="reply" >
									点击回复>
								</view>
							</view>
						</view>
					</z-paging>
				</swiper-item>
				<swiper-item class="swiperItem">
					<z-paging ref="paging5" v-model="dataList5" @query="queryList5">
						<view class="comment-area">
							<view class="comment-box" v-for="item in dataList5">
							<view class="comment-info">
								<view class="user-info">
									 <u-avatar src="" size="70"></u-avatar>
									<view class="user">
										用户2
										<p>2023-02-15</p>
									</view>
									<view class="user-rate">
										<p>非常满意</p>
										<u-rate ></u-rate>
									</view>

								</view>
								</view>
								<view class="comment-content">
									<view class="">
										产品非常好，非常喜欢。产品非常好，非常喜欢。产品非常好，非常喜欢。产品非常好，非常喜欢。产品非常好，非常喜欢。
									</view>
									<view class="comment-img">
								 <image src="../.." mode=""></image>
									</view>
								</view>
								<view class="reply" >
									点击回复>
								</view>
							</view>
						</view>
					</z-paging>
				</swiper-item>
			</swiper>
		</z-paging-swiper> -->
  </view>
</template>

<script>
export default {
  data() {
    return {
      countRate: 5,
      value: 5,
      stpe: 3,
      imgStyle: {
        width: '12rem'
      },
      current: 0,
      scurrent: 0,
      tabsList: [
        {
          name: '全部'
        },
        {
          name: '好评'
        },
        {
          name: '中评'
        },
        {
          name: '差评'
        },
        {
          name: '有图评'
        }
      ],
      dataList: [{}, {}],
      dataList2: [
        {
          status: 0
        }
      ],
      dataList3: [
        {
          status: 3
        }
      ],
      dataList4: [
        {
          status: 1
        }
      ],
      dataList5: [
        {
          status: 0
        }
      ]
    }
  },
  onLoad() {
    // this.$nextTick(function() {
    // 	this.onOrderLoad(this.current, null, true);
    // });
  },
  methods: {
    tabsChange(index) {
      this.scurrent = index
    },
    transition(e) {
      let dx = e.detail.dx
      this.$refs.uTabs.setDx(dx)
    },
    animationfinish(e) {
      let current = e.detail.current
      this.current = current
      this.scurrent = current
      this.$refs.uTabs.setFinishCurrent(current)
      if (this.current != current) {
        //this.onOrderLoad(current, null, true);
      }
      this.scurrent = current
      this.current = current
    },
    queryList(page, pageSize) {
      this.initData(page, pageSize, '')
    },
    queryList2(page, pageSize) {
      this.initData(page, pageSize, '')
    },
    queryList3(page, pageSize) {
      this.initData(page, pageSize, '')
    },
    queryList4(page, pageSize) {
      this.initData(page, pageSize, '')
    },
    queryList5(page, pageSize) {
      this.initData(page, pageSize, '')
    },

    initData(page, pageSize, status) {},
    onOrderDetail(item) {
      this.$utils.route({
        url: '/goods/group-order-details/group-order-details',
        params: {
          id: item.id
        }
      })
    },
    onShare() {},
    routeTo() {
      uni.navigateTo({
        url: '/goods/pre-goods-details/pre-goods-details'
      })
    }
  }
}
</script>

<style lang="scss" scoped>
page {
  background: #eeeeef;
}

.content-tip {
  display: flex;
  height: 140rpx;
  background-color: #fff;
  margin: 20rpx 0;
  padding: 20rpx;
}

.mer-rate-left {
  flex: 3;
  text-align: center;
  view {
    font-size: 45rpx;
    font-weight: 700;
  }
  p {
    color: #666666;
  }
}

.mer-rate-right {
  flex: 7;
  margin-top: 20rpx;
  text {
    font: 35rpx;
  }
  .rate-tip {
    padding: 5rpx 10rpx;
    color: #ffac0e;
    background-color: #f5f0e6;
  }
}

.comment-area {
}

.comment-box {
  padding: 20rpx;
  background-color: #fff;
  margin-bottom: 10rpx;
}

.comment-top {
  overflow: auto;
}

.txt1 {
  font-size: 35rpx;
  float: left;
}

.txt2 {
  float: right;
  color: #7e7e5e;
}

.comment-info {
  overflow: auto;
  margin: 15rpx 0;
}
.comment-info-left {
  float: left;
  font-size: 30rpx;
  width: 45%;
}

.info-left-username {
  display: inline-block;
  vertical-align: top;
}

.comment-info-right {
  float: right;
}

.info-left-tx {
  width: 90rpx;
  height: 90rpx;
  border-radius: 90rpx;
}

.comment-img image {
  width: 200rpx;
  height: 200rpx;
  margin-right: 10rpx;
}

.goods-box {
  display: flex;
  align-items: center;
  padding: 15rpx 0;
  margin: 15rpx 0;
  border-top: #ededed solid 2rpx;
  border-bottom: #ededed solid 2rpx;
}
.goods-desc {
  line-height: 55rpx;
  font-size: 30rpx;
}

.goods-desc p {
  color: #999999;
  font-size: 26rpx;
}

.del-btn {
  display: inline-block;
  padding: 10rpx 20rpx;
  border: #999999 solid 2rpx;
  border-radius: 30rpx;
  color: #999999;
}

.user-info {
  display: flex;
  font-size: 24;
}

.user {
  flex: 1;
  margin-left: 10rpx;
}

.user p {
  color: #999999;
  font-size: 22rpx;
}

.user-rate {
  text-align: right;
}

.reply {
  padding: 13rpx;
  margin-top: 15rpx;
  border-top: #ededed solid 2rpx;
  color: #0f76bc;
  font-size: 30rpx;
}
</style>
